package com.example.demo.service.impl;

import com.example.demo.entity.Product;
import com.example.demo.service.ProdService;
import org.springframework.stereotype.Service;

@Service
public class prodServiceImpl implements ProdService {
    @Override
    public Product getProd() {
        Product product = new Product();
        product.setProdName("苹果手机");
        product.setProdPrice(5899.5);
        return product;
    }


    @Override
    public void updateProd(Product product) {
        System.out.println("商品数据更新成功~~~~~~~~~~~~");
    }
}
